package com.jingdianjichi.sunject.application.convert;

import com.jingdianjichi.subject.domain.entity.SubjectCategoryBo;
import com.jingdianjichi.subject.infra.basic.entity.SubjectCategory;
import com.jingdianjichi.sunject.application.dto.SubjectCategoryDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 种类实体类转换
 */
@Mapper
public interface SubjectCategoryDTOConverter {

    SubjectCategoryDTOConverter INSTANCE=Mappers.getMapper(SubjectCategoryDTOConverter.class);

    SubjectCategoryBo converDtoToBo(SubjectCategoryDTO subjectCategoryDTO);

    List<SubjectCategory> converBoListToEntityList(List<SubjectCategoryBo> subjectCategoryBoList);

    List<SubjectCategoryDTO> converBoListToDtoList(List<SubjectCategoryBo> subjectCategoryBoList);
}
